package com.bookseek.xreader.views.fragments;

import android.content.Context;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;

public class BaseFragment extends Fragment {
    public Context baseContext;
    public String TAG = "BaseFragment";

    @Override
    public void onAttach(@NonNull Context context) {
        super.onAttach(context);
        baseContext = context;
        Log.i(TAG,"onAttach===> 赋值 baseContext");
    }

    @Override
    public void onDetach() {
        super.onDetach();
        baseContext = null;
        Log.i(TAG,"onDetach===> 置空 baseContext");
    }
}
